
export const utils = {
  // 检查权限，针对前端
  checkAuth(btn) {
    let power = JSON.parse(localStorage.getItem("power"));
    let user = JSON.parse(localStorage.getItem("user"));
    if (user.id != 1) {
      return power.includes(btn) ? true : false;
    } else {
      return true;
    }
  }
};
